﻿<phone:PhoneApplicationPage 
    x:Class="RecetasWP7.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="PageTitle" Text="CHEFFYTO" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}" FontWeight="Bold" FontStyle="Normal" FontFamily="Comic Sans MS"><TextBlock.Foreground><LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"><GradientStop Color="White" Offset="0.453" /><GradientStop Color="#5EF51F1F" Offset="0.88" /><GradientStop Color="#FFDB4335" Offset="0.287" /><GradientStop Color="#60FF3B3B" Offset="0.873" /></LinearGradientBrush></TextBlock.Foreground></TextBlock>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <TextBlock Height="37" HorizontalAlignment="Left" Margin="102,6,0,0" Name="textBlock1" Text="DESCARGA TU RECETA!" VerticalAlignment="Top" Width="277" FontWeight="Bold" FontFamily="Comic Sans MS" FontStretch="Normal" TextWrapping="NoWrap" TextTrimming="None" FontSize="23"><TextBlock.Foreground><LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5"><GradientStop Color="#FF793838" Offset="0.46" /><GradientStop Color="#FFFF0A0A" Offset="1" /><GradientStop Color="#FFDB1919" Offset="0.087" /></LinearGradientBrush></TextBlock.Foreground></TextBlock>
            <ListBox ItemsSource="{Binding}" DisplayMemberPath="titulo" HorizontalAlignment="Left" Margin="9,49,0,163" Name="LISTA_RECETAS" Width="438" Background="{x:Null}" Foreground="Black" SelectionChanged="LISTA_RECETAS_SelectionChanged"></ListBox>
            <Button Content="Ok" Height="72" HorizontalAlignment="Left" Margin="357,472,0,0" Name="OK_BUTTON" VerticalAlignment="Top" Width="99" Cursor="Hand" Click="OK_BUTTON_Click">
                <Button.Background>
                    <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                        <GradientStop Color="Black" Offset="0" />
                        <GradientStop Color="#FFEF1F1F" Offset="1" />
                    </LinearGradientBrush>
                </Button.Background>
            </Button>
            <TextBox Height="72" HorizontalAlignment="Left" Margin="9,472,0,0" Name="BUSQUEDA" Text="Buscar..." VerticalAlignment="Top" Width="329" FontStyle="Italic" Foreground="#FF8F9D9D" BorderBrush="#BF9AB1B1" Background="#BFFFFFFF" GotFocus="BUSQUEDA_GotFocus" />
            <Button  KeyDown="Box_KeyDown" Content="Favoritas" Height="72" HorizontalAlignment="Left" Margin="154,539,0,0" Name="FAV_BUTTON" VerticalAlignment="Top" Width="160" Cursor="Hand" Click="FAV_BUTTON_Click">
                <Button.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="Black" Offset="0" />
                        <GradientStop Color="White" Offset="1" />
                    </LinearGradientBrush>
                </Button.Background>
            </Button>
            <Grid.Background>
                <ImageBrush ImageSource="/RecetasWP7;component/CHEFFYTO.png" />
            </Grid.Background>
        </Grid>
        <Grid x:Name="ContentPane2" Grid.Row="1" Margin="12,0,12,0" Visibility="Collapsed">
            <Button Content="Add Fav" Height="72" HorizontalAlignment="Right" Margin="0,539,22,0" Name="add_fav" VerticalAlignment="Top" Width="160" Click="button1_Click">
                <Button.Background>
                    <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                        <GradientStop Color="Black" Offset="0" />
                        <GradientStop Color="#FF99D3F8" Offset="1" />
                    </LinearGradientBrush>
                </Button.Background>
            </Button>
            <Button Content="Atras" Height="72" HorizontalAlignment="Left" Margin="28,539,0,0" Name="button2" VerticalAlignment="Top" Width="160" Click="button2_Click">
                <Button.Background>
                    <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                        <GradientStop Color="Black" Offset="0" />
                        <GradientStop Color="#FF99D3F8" Offset="1" />
                    </LinearGradientBrush>
                </Button.Background>
            </Button>
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="11,49,0,0" Name="tituloTextBlock" Text="Titulo:" VerticalAlignment="Top" Width="256" FontWeight="Bold" />
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="11,126,0,0" Name="ingredientesTextBlock" Text="Ingredientes:" VerticalAlignment="Top" Width="244" FontWeight="Bold" />
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="28,90,0,0" Name="textBlockTitulo" Text="" VerticalAlignment="Top" Width="406" />
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="11,279,0,0" Name="preparacionTextBlock" Text="Preparacion:" VerticalAlignment="Top" Width="256" FontWeight="Bold" />
            <ScrollViewer Height="218" HorizontalAlignment="Left" Margin="11,0,0,96" Name="scrollViewer1" VerticalAlignment="Bottom" Width="423">
                <TextBlock Text=""
                           TextWrapping="Wrap" Name="textBlockPreparacion" />
            </ScrollViewer>
            <ScrollViewer Height="111" HorizontalAlignment="Left" Margin="11,162,0,0" Name="scrollViewer2" VerticalAlignment="Top" Width="423" >
                <TextBlock Name="textBlockIngredientes" Text=""
                           TextWrapping="Wrap"/>
            </ScrollViewer>    
            <Grid.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="Black" Offset="0" />
                    <GradientStop Color="#FFEB1B1B" Offset="1" />
                </LinearGradientBrush>
            </Grid.Background>
        </Grid>
    </Grid>
 
    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
